<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            perspective: 1000px;
        }

        .box1 {
            position: relative;
            width: 328px;
            height: 473px;
            transition: all 2s;
            margin: 100px auto;
            backface-visibility: hidden;
        }

        .box1 div {
            position: absolute;
            top: 0;
            left: 0;


        }

        .box2 {
            width: 100%;
            height: 100%;
            background: url("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fbb3362a727a6d8bdc4a90b23761ae12df6b950ee12906-0VD1eV_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1666432567&t=e1d68899e6e2ea9054bd0896470a9fd0") no-repeat;
        }

        .box3 {
            width: 100%;
            height: 100%;
            background: url("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fbb3362a727a6d8bdc4a90b23761ae12df6b950ee12906-0VD1eV_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1666432567&t=e1d68899e6e2ea9054bd0896470a9fd0") no-repeat;
            background-position: -328px 0px;
            transform: rotateY(180deg);

        }

        body:hover .box1 {
            transform: rotateY(180deg);
        }
    </style>
</head>

<body>
    <div class="box1">
        <div class="box3"></div>
        <div class="box2"></div>
    </div>
</body>

</html>